projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2dd95a
)
gtkspinbutton: Don't hilight buttons when !editable
author
Zeeshan Ali (Khattak)
<zeeshanak@gnome.org>
Thu, 5 Jan 2012 01:09:27 +0000
(
03:09
+0200)
committer
Zeeshan Ali (Khattak)
<zeeshanak@gnome.org>
Fri, 6 Jan 2012 16:35:37 +0000
(18:35 +0200)
Don't hilight the buttons on mouse over when 'editable' property is set to
'FALSE.
https://bugzilla.gnome.org/show_bug.cgi?id=667229
gtk/gtkspinbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkspinbutton.c
b/gtk/gtkspinbutton.c
index bff3d6607150f45d2a2cdff32ebb2ed5b1af1da4..bd4f8a3534991d36fe5d07669ec0e229009a6808 100644
(file)
--- a/
gtk/gtkspinbutton.c
+++ b/
gtk/gtkspinbutton.c
@@
-816,7
+816,8
@@
gtk_spin_button_panel_get_state (GtkSpinButton *spin_button,
GtkStateFlags state;
GtkSpinButtonPrivate *priv = spin_button->priv;
- if (gtk_spin_button_panel_at_limit (spin_button, panel))
+ if (gtk_spin_button_panel_at_limit (spin_button, panel) ||
+ !gtk_editable_get_editable (GTK_EDITABLE (spin_button)))
state = GTK_STATE_FLAG_INSENSITIVE;
else
{